package com.example.demo3.controller;

import com.example.demo3.service.HwFacilityToiletDetailService;
import com.example.demo3.util.Result;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/hftdc")
@Api("公厕详情")
public class HwFacilityToiletDetailController {
    @Autowired
    HwFacilityToiletDetailService hwFacilityToiletDetailService;

    @GetMapping("/hftdcget")
    @ApiOperation(("最新的10条数据"))
    public Result hftdcList(String code){
        return  hwFacilityToiletDetailService.hftdcList(code);
    }
}
